package au.chao.message;

import org.springframework.core.style.ToStringCreator;


public class TextMessage implements Message {
	private MessageHeader header;
	private MessageContent content;

	public TextMessage() {
	}

	public TextMessage(MessageHeader header, MessageContent content) {
		this.header = header;
		this.content = content;
	}

	public MessageHeader getHeader() {
		return header;
	}

	public void setHeader(MessageHeader header) {
		this.header = header;
	}

	public MessageContent getContent() {
		return content;
	}

	public void setContent(MessageContent content) {
		this.content = content;
	}

	public String toString() {
		return new ToStringCreator(this).append("header", header).append("content", content)
				.toString();
	}
}
